String.prototype.toInt=function(){var b=0;for(var a=0;a<this.length;a++){b=b+((this.charCodeAt(a)-48)*Math.pow(10,this.length-1-a))}return b};String.prototype.toBool=function(){if(this.toLower()=="true"||this=="1"||this.toLower()=="yes"){return true}else{return false}};