The old code used equals, but you've switched to equalsIgnoreCase.  Please confirm this was intentional and desired.  Are there expected instances where the case will be different?