code: public static CharSequence ltrim(CharSequence str)
  	{
  		int len;
  		int i;
  
  		if(str == null || (len = str.length()) <= 0)
  			return "";
  		for(i=0;i<len;i++)
  			if(!Character.isWhitespace(str.charAt(i)))
  				break;
  		if(i>=len)
  			return "";
  		return str.subSequence(i, len);
  	}
docs: Trim horizontal whitespace from left side.
  @param str The string to trim
  @return str with whitespace from left side trimmed.