A while ago there was a suggestion here to add splice to String, which didn't get much positive feedback, but would also allow replace at position -- and IMO that could help other use cases, especially for those scared of regexes -- for example replacing a chunk of text between two found substrings.