$ 0 0 Hi Hank,replace function works perfectly.Below is the code which I tried. If your intention is to replace b with d,then try a.replace(/b/g,'d'); Sreehari