2009-12-04 UPDATE: For profiling results on a number of the suggestions posted here, see below!
Consider the following very
I'd use a dictionary for the key value pairs and take advantage of the O(1) lookup time.