Re-implementation of Lookup()

The original Lookup procedure relies on words being separated by space.
Thus it doesn't work for CJK languages. The new method abandoned space
splitting and uses a string cropping procedure.