remove duplicated tags from query string