Check the accepted answer at the link below.
How to check for key in a Map irrespective of the case?
Bottom line is "The simplest solution is to simply convert all inputs to uppercase (or lowercase) before inserting/checking. You could even write your own Map wrapper that would do this to ensure consistency."