//.. return str.replace(/s/g, ''); //..
s* ignore spaces eg s*yourregexs*
trim unnecessary whitespace