Use range for character class when possible