String lcFirst(final String s) { if (s == null) return ""; String first = s.substring(0, 1); String remainder = ""; if (s.length() > 1) { remainder = s.substring(1); } return first.toLowerCase() + remainder; }In javaScript:
function lcFirst(a) { if (a == null) return ''; return a.substr(0,1).toLowerCase() + a.substr(1); }