Myfreeonlinetools provides an easy online tool that can remove space and replace them with commas, underscore, dash, and change case in strings, lines or paragrah.
For replace all used spaces with underscores in a string, line, or paragraph using JavaScript, the replace method easily helps it with the replaceAll method.
Example:
replaceAll(',','');
A useful tool for removing space in strings or lines with dash, hyphen and underscore for use as URL slug or a file name.