Searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced