add functionality for searching all words containing a prefix