removes superfluous regexp group