Fixed an issue where keyword search expected the text to be all ASCII characters
I fixed the issue !6289
The original code assumed that the text was always ASCII but it isn't always, so instead of checking if the previous character is Alpha, I just check that it isn't whitespace which is a better way to check that we are at the beginning of a word.