remove unnecessary query string match (if exists) from the list of values