Here you can find the source of ltrim(String source)
public static String ltrim(String source)
//package com.java2s; //License from project: Apache License public class Main { public static String ltrim(String source) { return source.replaceAll("^\\s+", ""); }//from w w w .j a v a 2 s . c o m }