added support for string selection to highlight