String replace
The method replace returns a new string with old replaced by new.
Syntax
The format is:str.replace(old, new, max)
Parameters
| Parameter |
|---|
| old The string to be replaced |
| new The string to be used |
| max Maximum amount of replacements.Leave blank for infinite. |