getting rid of std::string in s-trie code, making it more generic.