This method compares two strings with compareToIgnoreCase or equalsIgnoreCase, after having
called toUpperCase or toLowerCase on the string in question. As you are comparing with out
concern to case, the toUpperCase or toLowerCase calls are pointless and can be removed.