'can't capitalize first char in code template netbeans 12.3

i've made a custom code template for java in netbeas 12.3 like so :

 ${no-indent}private final StringProperty ${field default="fieldName"} = new 
    SimpleStringProperty("${defaultValue}");
        
    ${no-indent}public void set${field} (String string)
        {this.${field}.set(string);}
        
    ${no-indent}public String get${field} (){
        return this.${field}.get();}
          
     ${no-indent}public StringProperty get${field}Property(){
        return this.${field};}

and i get this when i call the template without any input changes

        private final StringProperty fieldName = new 
        SimpleStringProperty("defaultValue");
        
        public void setfieldName (String string)
        {this.fieldName.set(string);}
        
        public String getfieldName (){
        return this.fieldName.get();}
          
        public StringProperty getfieldNameProperty(){
        return this.fieldName;}

as you can see those methods does not follow naming conventions . i want setFieldName() instead of setfieldName() but i don't know how to implement it . i tried with capitalize = true and ?first_cap and nothing happens



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source