re-ident to two spaces
refactored: extracted methods for better readability
improved lookupTest, and uncovered a bug: last country in the list will not be catched
improved lookupTest, and uncovered one more bug: "Virgin Islands" and "Virgin Islands, British" are treated the same