Here you can find the source of ltrimCount(final String input)
public static int ltrimCount(final String input)
//package com.java2s; public class Main { public static int ltrimCount(final String input) { if (input == null) return 0; if (input.isEmpty()) return 0; int i = 0; while (i < input.length() && input.charAt(i) == ' ') ++i;//from w w w .j a v a2 s . c o m return i; } }