Split the string on all the .‘s and then join it again with empty spaces, like this:
checkedNew = checked.split('.').join("");
Split the string on all the .‘s and then join it again with empty spaces, like this:
checkedNew = checked.split('.').join("");