sanitized switch-case with toupper() function.