fix template && fix string comparator in trie