var dest = new String(""); var src = new String("aze"); var ar = new Array(); ... ar.push(src); ar.push(src); ... dest = ar.join("");