is just one string, then you can use the .replace() method. This by taking a string String.replace(), and replaces the first parameter with the second parameter. The first parameter must be a regular expression (but don’t worry, if you’re just doing simple text, you just enclose the character(s) that you want to replace in / /g:
let string1 = "a,b,c";
string1.replace(/,/g, " ");
console.log(string1); //prints "a b c"
You can read more about this method here.
I hope this helps!