String replace
function replaceAll(str, find, replace) { return str.replace(new RegExp(find, 'g'), replace); }