var checked = "my test text. Test dot . Dellete ." checkedNew = checked.split('.').join(""); console.log(checkedNew)