Convert non defined upper case constants to lower case.

Added our own exception