Added Cursor position when you write, to insert the text where it has to be and move the cursor to the next postion