Javascript String equals(str)
String.prototype.equals = function(str){ return this.trim().toLowerCase() == str.trim().toLowerCase(); }
String.prototype.equals = function(str) { return this === str; };