added string to enum conversion