docs: function (string, size, character, begin) {
              var start, length;
              if (begin === true) {
                  for (start = 0, length = string.length - size; start < length; start += 1) {
                      if (string.charAt(start) !== character) {
                          break;
                      }
                  }
  
                  return string.substring(start);
              } else {
                  for (start = string.length - 1; start >= size; start -= 1) {
                      if (string.charAt(start) !== character) {
                          break;
                      }
                  }
  
                  return string.substring(0, start + 1);
              }
          }