added class to tell if character is a constant