Prettified and sanitized the trie lookup function