change parser type from String to enum

I think we use enum parser type instead of String.