code: public static String rejectChar(String string, CharPredicate predicate)
      {
          int size = string.length();
          StringBuilder buffer = new StringBuilder(string.length());
          for (int i = 0; i < size; i++)
          {
              char character = string.charAt(i);
              if (!predicate.accept(character))
              {
                  buffer.append(character);
              }
          }
          return buffer.toString();
      }
docs: @return a new string excluding all of the characters that return true for the specified {@code predicate}.
  
  @since 7.0