Build a query string from the remaning values