Fix bug where cursor text is searched for, but contains no content
Handle non ascii characters when parsing for ST2.
Fix syntax error