convert strings to enums