You can use for this. The equalsIgnoreCase() can be done by lowercasing the both sides by fn:toLowerCase().
Both are equal.
Both are not equal.
Or when you're targeting a Servlet 3.0 container (Tomcat 7, Glassfish 3, JBoss AS 6, etc) with a web.xml declared conform Servlet 3.0, then you can invoke the equalsIgnoreCase() method.
Both are equal.
Both are not equal.