Use String.equals for Java 6 compatiblity