remove some unnecessary quotes in rewrite