code: function() {
        return this.trim().replace(/([\r\n\s　])+/g, function(match, whitespace){
          return whitespace === '　' ? whitespace : ' ';
        });
      }
docs: *
  @method compact()
  @returns String
  @short Compacts all white space in the string to a single space and trims the ends.
  @example
  
  'too \n much \n space'.compact() -> 'too much space'
  'enough \n '.compact()           -> 'enought'
  
  *