Fix method overload for JDK1.6
Compare strings with equals method