klyn.MutableString.replace
method
public replace(notnull oldValue as String, notnull newValue as String) as String
Description

Returns an immutable String with substring replacements.

Parameters
ParameterDescription
oldValueSubstring to replace.
newValueReplacement text.
Returns

An immutable String result.

Example
result = m"a-b-a".replace("a", "x")