Created a class to handle text to/from enum mappings.