added digits to uppercase and lowercase masks