Convert string type to Enum type