code: public static ValueWithPos<String> isbnFormatWithPos(final ValueWithPos<String> pentry) {
      if (pentry == null) {
        return null;
      }
      final int length = isbnCompress(pentry.getValue()).length();
      if (length > Isbn10Validator.ISBN10_LENGTH) {
        return isbn13FormatWithPos(pentry);
      } else {
        return isbn10FormatWithPos(pentry);
      }
    }
docs: format isbn10 or 13 with separator signs.
  
  @param pentry string to format and cursor position
  @return formated string with new cursor position