Add strings to the trie with id.
Looks up strings in the trie.