JSFiddle - React, Tailwind, and code Playground
JavaScript
var teste = "blabla 555.. 999";
var str = teste.replace(/\s{2,}/g, '..');
console.log(str);
alert(str)
var teste = "blabla 555.. 999";
var str = teste.replace(/\s{2,}/g, '..');
console.log(str);
alert(str)