public bool ContainsPrefix(string word) { CheckWord(word); var node = Root.Search(word.Trim(), 0); return node.IsNotNull(); }