Add remove query strings function