analytics.js
function toSpaceCase (string) {
  return clean(string).replace(/[\W_]+(.|$)/g, function (matches, match) {
    return match ? ' ' + match : '';
  });
}
function toSpaceCase (string) {
  return clean(string).replace(/[\W_]+(.|$)/g, function (matches, match) {
    return match ? ' ' + match : '';
  });
}
function toSpaceCase ( string ) { return clean ( string ) . replace ( / [\W_]+(.|$) / g , function ( matches , match ) { return match ? ' ' + match : '' ; } ) ; }
Convert a `string` to space case.

@param {String} string
@return {String}
Convert a string to space case .