If apache common lang has been added to your project, use:
org.apache.commons.lang3.StringUtils.equalsIgnoreCase()