fix to front-end search terms, when too long