fix a bug with java enums where we need to convert strings to uppercase.