Correct character classes due to double negation