If you need the resulting text layout to be the same as the original line of text you may need to do something similar to my
SSA Karaoke Animator script, where each layer contains the full text and uses Range Selectors to set the opacity to 0% for the other letters.