convert textselection