CharSequence (@NotNull CharSequence str) { StringBuilder result = new StringBuilder(str.length()); for (int i = 0, len = str.length(); i < len; i++) { appendLegalized(result, str.charAt(i)); } return result; }