docs: function (str, sz, begin, padStr) {
                  str = '' + str; // force cast to string
                  padStr = padStr || '&nbsp;'; // empty padding string doesn't make sense
                  var lgth = str.length;
                  if (lgth < sz) {
                      var beg = (begin === true);
                      var a = [], diff = sz - lgth;
                      if (!beg) {
                          a.push(str);
                      }
                      for (var i = 0; diff > i; i++) {
                          a.push(padStr);
                      }
                      if (beg) {
                          a.push(str);
                      }
                      return a.join('');
                  }
                  return str;
              }