Debug.write( inp.getSelectionPosition() , inp.getSelectionSize()) This is a very long string that I've already typed into an input box.