TRIE findMatchesOnPath only need one param.