implemented < operator for string trie