Alterar string com string js
var str ="Hello World!";
str.replace("Hello", "Hi");
Snippets
var str ="Hello World!";
str.replace("Hello", "Hi");
eval('you code here')