What is a good way to process multiple possible string variations into an integer?

Is this kind of spaghetti really my only option?

I absolutely detest it thuogh… I suppose I could use a switch statement using the full string names, it’d be more efficient but a lot more cumbersome to work with… Though if i’m doing that i’d rather just use the integers since i know what they are, less intuitive to read, but less of a pain to maintain…