The replace() method searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced.
www.w3schools.com