method
Text.replace
Text.replace(s, from, to) -> string
Returns a fresh string with every occurrence of from in s replaced by to; if from never appears the string is returned unchanged. Use it to substitute tokens in a template, swap a delimiter, or sanitize input.
Example
program Demo {
handler Step phase Update {
let path = Text.replace(name, " ", "_")
}
}