Replaces part of a character string with a new character string.
- String
- A String object.
- Old string
- A String object that contains the particular substring of characters you
want to replace.
- New string
- A String object that contains the new character string you want to use as
the replacement.
Returns a String object that contains the updated character string.
