Here you can find the source of leftTrim(String value)
public static String leftTrim(String value)
//package com.java2s; //License from project: Open Source License public class Main { public static String leftTrim(String value) { int count = 0; while (Character.isWhitespace(value.charAt(count))) { count++;/*from w ww .j a v a 2s. c o m*/ } return value.substring(count); } }