class StringSimpleFieldActions implements AtlasFieldAction {

    @AtlasActionProcessor
    public static String capitalize(Capitalize action, String input) {
        if (input == null || input.length() == 0) {
            return input;
        }
        if (input.length() == 1) {
            return String.valueOf(input.charAt(0)).toUpperCase();
        }
        return String.valueOf(input.charAt(0)).toUpperCase() + input.substring(1);
    }

}