code: public static String 
      trimLeft( String string ) 
      {
      	for( int i = 0; i < string.length(); ++i ) 
      	{
      		char charAt = string.charAt( i );
              if( charAt != ' '  
      		 && charAt != '\t' 
      		 && charAt != '\n'
      		 && charAt != '\r' ) 
      		{    			
      			return i == 0 ? string : 
      			                string.substring( i );
      		}
      	}
      	return string;
      }
docs: Removes all whitespace characters from the beginning
  of the string.