Strip away unecessary stuff when submitting search