private static int checkForR(String value, int pos) {
    pos += 2;
    if (value.length() > pos + 2 && "\\r".equals(value.substring(pos, pos + 2))) return pos + 2;
    return pos;
  }
private static int checkForR(String value, int pos)