Split the string on all the .'s and then join it again with empty spaces, like this:
.
checkedNew = checked.split('.').join("");
548k questions
547k answers
4 comments
86.3k users