adjusting the search string generator