fixed bug that would detect parts of words