Accept enumeration index as string.