code: public static String capitalize(final String string)
     {
        if (string == null)
           throw new IllegalArgumentException("string");
        if (string.equals(""))
           throw new IllegalArgumentException("string");
  
        return Character.toUpperCase(string.charAt(0)) + string.substring(1);
     }
docs: Capitalize the first character of the given string.
  
  @param string String to capitalize.
  @return Capitalized string.
  
  @throws IllegalArgumentException String is <kk>null</kk> or empty.