remove query string and remove hash string