code: public void initLeading()
      {
          this.leading = 0;
          while (this.leading < this.value.length() && this.value.charAt(this.leading) == ' ')
          {
              this.leading++;
          }
  
          if (this.leading == this.value.length())
          {
              this.setEmpty();
          }
      }
docs: Recalculate leading spaces.