@Override
    public String toString() {
        StringBuilder ret = new StringBuilder();
        toConfig(ret, "");
        return ret.toString();
    }
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