applying same text cleaning code to simple search that is used in advanced search