strip additional optional keywords from query