public static String cleanBeginWhitespace(String in){
  int len=in.length();
  int st=0;
  int off=0;
  char[] val=in.toCharArray();
  while ((st < len) && (val[off + st] <= ' ')) {
    st++;
  }
  return ((st > 0) || (len < in.length())) ? in.substring(st,len) : in;
}

public static String cleanBeginWhitespace ( String in ) { int len = in . length ( ) ; int st = 0 ; int off = 0 ; char [ ] val = in . toCharArray ( ) ; while ( ( st < len ) && ( val [ off + st ] <= ' ' ) ) { st ++ ; } return ( ( st > 0 ) || ( len < in . length ( ) ) ) ? in . substring ( st , len ) : in ; }
remove white space from the begin
