src/org/kocakosm/pitaya/util/Strings.java
public static String trimLeft(String str)
	{
		int start = 0;
		for (char c : str.toCharArray()) {
			if (c != ' ') {
				break;
			}
			start++;
		}
		return str.substring(start);
	}
public static String trimLeft(String str)
	{
		int start = 0;
		for (char c : str.toCharArray()) {
			if (c != ' ') {
				break;
			}
			start++;
		}
		return str.substring(start);
	}
public static String trimLeft ( String str ) { int start = 0 ; for ( char c : str . toCharArray ( ) ) { if ( c != ' ' ) { break ; } start ++ ; } return str . substring ( start ) ; }
Returns a copy of the given {@code String} with leading whitespaces
omitted.

@param str the {@code String} to trim.

@return the trimmed {@code String}.

@throws NullPointerException if {@code str} is {@code null}.
Returns a copy of the given { @code String } with leading whitespaces omitted .