docs: public static void validatePattern(String pattern, String string){
          if (!string.replaceAll(pattern, "").equals(string)){
              throw new RestrictionViolationException("Violation of pattern restriction, the string doesn't math the acceptable pattern, which is " + pattern);
          }
      }