String.prototype.replace = function(searchStr, replaceStr):String { var arr:Array = this.split(searchStr); return arr.join(replaceStr); };