
Код:
String.prototype.replace = function (findWhat, replaceWith) {
if (findWhat != undefined and findWhat != "") {
this = (this.split (findWhat)).join (replaceWith);
}
return this;
};
str1 = 'ООО "Зеленые руки"';
str2 = str1.replace ('"', '"');
trace (str1);
trace (str2);