Returns a new string produced from s, in which all occurences of oldSubstr are replaced with the newSubstr.

Tip:

You may call this function in a method-like style:

s.replace(oldSubstr, newSubstr)
Examples:
replace("java.lang.Object", ".", "/")
returns
"java/lang/Object"
also
"Veni, vidi, vici".replace(",", " ->")
returns
"Veni -> vidi -> vici"