added method to get version enumeration value from string