public native replace(oldValue as String, newValue as String) as String
Returns a copy where all occurrences of oldValue are replaced by newValue.
A new string with the replacements applied.
assert "a-b-a".replace("a", "x") == "x-b-x"