replace () method syntax:
str.replace (old, new [, max ])
Parameters
old - substring to be replaced.
new - new string for replacing old substring.
max - optional string, alternatively no more than max times
replace () method syntax:
str.replace (old, new [, max ])
Parameters
old - substring to be replaced.
new - new string for replacing old substring.
max - optional string, alternatively no more than max times