commit the query str modification