public static String toUpperFirstChar(final String s)
    {
        if (Character.isUpperCase(s.charAt(0)))
        {
            return s;
        }

        return Character.toUpperCase(s.charAt(0)) + s.substring(1);
    }
Uppercase the first character of a given String.

@param s 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/Generators.java