Spell check from class that uses custom hashmap