set maxlength on new pattern name input