public void ltrim(){
  int index=0;
  while ((index < text.length()) && (text.charAt(index) <= ' ')) {
    index++;
  }
  text=text.substring(index);
}

public void ltrim ( ) { int index = 0 ; while ( ( index < text . length ( ) ) && ( text . charAt ( index ) <= ' ' ) ) { index ++ ; } text = text . substring ( index ) ; }
trim all whitespace from the left of the template text
