docs: @Override
      public boolean isValid(Object input) {
          String str = input.toString();
          int len = str.length();
          if (minLength != null && len < minLength)
              return false;
          if (maxLength != null && len > maxLength)
              return false;
  
          return regex == null || str.matches(regex);
      }