Fix failing casing. If using toUpperCase to make comparisons case insensitive ensure it is done both sides of the comparison.