I have this string: ABCDEFGHIJ
ABCDEFGHIJ
I need to replace from position 4 to position 5 with the string ZX
ZX
It will look like this: ABC
ABC
All others answers don't work if the string contains Unicode char (like Emojis) because an Unicode char weight more bytes than a char.
Example : the emoji '