Add tokens to search field if there is a query.