private static String capitalize(String str) {
        return Character.toUpperCase(str.charAt(0)) + str.substring(1);
    }
Capitalizes the given string by upper-casing its first letter.

@param str The string to capitalize.
@return The capitalized string.
messagebus/src/main/java/com/yahoo/messagebus/routing/HopSpec.java