public static String trimLeadingTabsAndSpaces(String line){
  int size=line.length();
  int start=size;
  for (int i=0; i < size; i++) {
    char c=line.charAt(i);
    if (!IndentManipulation.isIndentChar(c)) {
      start=i;
      break;
    }
  }
  if (start == 0)   return line;
 else   if (start == size)   return "";
 else   return line.substring(start);
}

public static String trimLeadingTabsAndSpaces ( String line ) { int size = line . length ( ) ; int start = size ; for ( int i = 0 ; i < size ; i ++ ) { char c = line . charAt ( i ) ; if ( ! IndentManipulation . isIndentChar ( c ) ) { start = i ; break ; } } if ( start == 0 ) return line ; else if ( start == size ) return "" ; else return line . substring ( start ) ; }
removes leading tabs and spaces from the given string . if the string doesn ' t contain any leading tabs or spaces then the string itself is returned .
