Added temporary word/phrase check for highlight function

Made sure the highlight function is called only if a word/phrase is
typed in. If the input is a regular expression the function is not
called. Will remove once functionality to highlight regex matches is
implemented.