Substring replacement

That’s the method for an array. You can’t do that in a string (and it turns out, making a vector of substitution pairs won’t help):