Parsing string as enum
===

Consider the enum below:

    public enum TestType
    {
        Mil,
        IEEE
    }

How can I parse the folowing strings to the above enum?

`Military 888d Test` in case of `TestType.Mil` 
Or
`IEEE 1394` in case of `TestType.IEEE`

My idea was to check if the first letters of string matches 'Mil' or 'IEEE' then I would set it as the enum I want, but the problemis there are other cases that should not be parsed!
