Fixed a bug when finding the starting characters of a String.

lookup.js is now working.