implementation to search for various values in favorites user term

todo: better performance and complications with trailing blanks