Crursor on SetFocus

Hi
Please look at the following code:

Selection.setFocus("_root.T1_txt");
T1_txt.text=“Ola”;

I want to do the following the cursor must be at the end of the text Ola (expecting the new character) and not at the begin of the text.
Anyone help me please.
Thank you