Optimized word search a bit.