public String replaceNonMembers(String input, char replacement) {
    if (!contains(replacement)) {
      throw new IllegalArgumentException(replacement + " is not a member of " + pattern);
    }
    return containsAll(input) ? input : replaceNonMembersImpl(input, replacement);
  }
public String replaceNonMembers ( String input , char replacement ) { if ( ! contains ( replacement ) ) { throw new IllegalArgumentException ( replacement + " is not a member of " + pattern ) ; } return containsAll ( input ) ? input : replaceNonMembersImpl ( input , replacement ) ; }
Replace all characters in the input string with the replacement character.