return str.replace(/s/g, '');
let hello = " Hello, World! "; let wsRegex = /^s+|s+$/g; let result = hello.replace(wsRegex, "");