replace(text: String, target: String, replacement: String) : String
Replaces every occurrence of target in text with replacement.
For example, replace("abc-def", "-", "_") is "abc_def", replace("abc-def", "-", "") is "abcdef"
and replace("abab", "a", "cd") is "cdbcdb".
See also
Types