replace(str, search, repl) replaces the substring search with repl in the stringstr.
option explicit
sub replaceTest()
dim text, text_new as string
text = "hello bello world"
text_new = replace(text, "ll", "xyz")
debug.print("text_new = " & text_new)
' text_new = hexyzo bexyzo world.
end sub