public static String humanize ( final String input ) { if ( input == null || input . length ( ) == 0 ) { return "" ; } return upperFirst ( underscored ( input ) . replaceAll ( "_" , " " ) ) ; }
Converts an underscored camelized or dasherized string into a humanized one . Also removes beginning and ending whitespace .