change String Parser type to enum

I think we use enum parser type instead of String.