StringReplacePart::ovlp
An error occurs because the position specifications refer to overlapping ranges in the string:
StringReplacePart["123456789", "x", {{4, 5}, {5, 6}}]This shows valid arguments in StringReplacePart:
StringReplacePart["123456789", "x", {{4, 5}, {7, 8}}]