removing messy query string