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
It's better to use the String.substr().
String.substr()
Like this:
ReplString = GivenStr.substr(0, PostostarRelStr) + GivenStr(PostostarRelStr, ReplString.lenght());