fix an issue about string based enum
Merge pull request #9 from k3kaimu/fix_enum_string

fix an issue about string based enum