Here you can find the source of stripStart(String str, String stripChars)
public static String stripStart(String str, String stripChars)
//package com.java2s; public class Main { public static String stripStart(String str, String stripChars) { int strLen; if (str == null || (strLen = str.length()) == 0) { return str; }/*from w w w . j a v a 2s.c o m*/ int start = 0; if (stripChars == null) { while ((start != strLen) && Character.isWhitespace(str.charAt(start))) { start++; } } else if (stripChars.length() == 0) { return str; } else { while ((start != strLen) && (stripChars.indexOf(str.charAt(start)) != -1)) { start++; } } return str.substring(start); } }