String (@NotNull String text) { if (Verifier.checkCharacterData(text) == null) return text; return text.codePoints().map(cp -> Verifier.isXMLCharacter(cp) ? cp : '?') .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString(); }