public String parseChars(final Set<Integer> chars) {
        final StringBuilder sb = new StringBuilder();
        while (chars.contains(ch)) {
            sb.append((char) ch);
            next();
        }
        return sb.toString();
    }
Parses text as long as chars are contained in given chars. Places pos after parsed text
main/src/main/java/cgeo/geocaching/utils/TextParser.java