@ Transformer public static String capFirst ( Object o ) { if ( null == o ) return "" ; String string = o . toString ( ) ; if ( string . length ( ) == 0 ) { return string ; } return ( "" + string . charAt ( 0 ) ) . toUpperCase ( ) + string . substring ( 1 ) ; }
Make the first character be uppercase of the given object s string representation