adding input for trie