Remove unnecessary quoting of ? and ! in regexp