cut the string and replace with dot in js code example
Example: javascript replace period
var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"
var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"