There's an action "replace" for the text. Currently it replaces all occurrences of a given token in a string. Is it possible to limit it to a token index or a range of indexes (e.g. replace "B" with "X" at 6-12).
The only workaround I can think of is converting this string to an array, than replacing characters in the array and converting it back to text.