code: public static String trimFront(String input) {
  		int i = 0;
  		while (i < input.length() && Character.isWhitespace(input.charAt(i)))
  			i++;
  		return input.substring(i);
  	}
docs: Trims off white space from the beginning of a string.
  
  @param input
  the string to be trimmed
  @return the trimmed string