strip phrases from beginning of query