public static String capitalize ( String name ) { if ( name == null || name . length ( ) == 0 ) { return name ; } return name . substring ( 0 , 1 ) . toUpperCase ( ENGLISH ) + name . substring ( 1 ) ; }
Returns a String which capitalizes the first letter of the string .