Instead of explicitly enumerating variations, why not just directly do a string insensitive comparison via lower()? (See http://stackoverflow.com/questions/319426/how-do-i-do-a-case-insensitive-string-comparison-in-python for more details).