Could you provide an example action demonstrating what you are doing? “Insert Text” is really intended only for use as the type of function that inserts text in the editor - like a key that inserts a date.
You may be running into a bug, and I’d like to see that in action, but it’s also likely it’s not a good way to prepare text for output manipulating it in the editor and there might be a better/more reliable way.