dynamic construction for trie, go fmt