var selectedText:String = textField.text.substring(textField.selectionBeginIndex, textField.selectionEndIndex);