public static String capitalize(String name) {
        if (isBlank(name)) {
            return name;
        }
        return name.substring(0, 1).toUpperCase(Locale.ENGLISH) + name.substring(1);
    }
Capitalizes the first character of the given string.

@param name The string to capitalize.
@return The capitalized string if the input is not blank; otherwise, returns the input string unchanged.
primefaces/src/main/java/org/primefaces/util/LangUtils.java