public static String capitalize ( String s ) { String result = s ; if ( ! Utils . isEmptyOrWhitespaces ( s ) ) result = Character . toUpperCase ( s . charAt ( 0 ) ) + s . substring ( 1 ) . toLowerCase ( ) ; return result ; }
Capitalizes a string .