var MString=function(a){this.string=a};MString.prototype.endsWith=function(a){return this.string.indexOf(a)==0};MString.prototype.endsWith=function(a){return this.string.indexOf(a,this.length-a.length)!==-1};
info at phpclasses dot org