String (String text) { StringBuilder builder = new StringBuilder(text); for (int i = mySkipped.size() - 1; i >= 0; i--) { TextRange range = mySkipped.get(i); builder.delete(range.getStartOffset(), range.getEndOffset()); } return builder.toString(); }