docs: function(str, delim) {
              if (delim) return str.replace(new RegExp("^[\\s" + delim + "]+"),'').replace(new RegExp("[\\s" + delim + "]+$"), '');
              else return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
          }