/guava/guava/src/com/google/common/base/CharMatcher.java
int count = 0;int first = 0;
int first = 0;
} } return sequence.toString(); } public String trimAndCollapseFrom(CharSequence sequence, char replacement) { int len = sequence.length(); <extra_id_0> int last = len - 1; while (first < len && matches(sequence.charAt(first))) { first++; } while (last > first && matches(sequence.charAt(last))) { last--;