adapted the enums to accept lowercase values (format, texttype,
priority)