public static String toUpperFirstChar(final String str)
    {
        return Character.toUpperCase(str.charAt(0)) + str.substring(1);
    }
Uppercase the first character of a given String.

@param str to have the first character upper-cased.
@return a new String with the first character in uppercase.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/csharp/CSharpUtil.java