Here you can find the source of lTrim(String s)
public static String lTrim(String s)
//package com.java2s; //License from project: Apache License public class Main { /**/*w w w. j a v a 2 s . c om*/ * Elimina gli spazi a sx della stringa */ public static String lTrim(String s) { if (s == null) { return null; } else { char c[] = s.toCharArray(); int i = 0; while (i < s.length() && c[i] == ' ') { i++; } return s.substring(i, s.length()); } } }