klyn.MutableString.replace
method
public replace(notnull oldValue as MutableString, notnull newValue as MutableString) 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(m"a", m"x")