var str="mia stringa di testo.";
var n=str.replace(".",".
");
Cosi non va bene?