expressão regular substitua um ponto
mystring = mystring.replace(/\./g,' ')
Clever Crane
mystring = mystring.replace(/\./g,' ')
var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"