Return a new string with the content of str where the first occurrence of pattern is replaced by replacement.
str
pattern
replacement
Return a new string with the content of
str
where the first occurrence ofpattern
is replaced byreplacement
.