src/main/java/eu/digitisation/input/Batch.java
static String prefix(String s1, String s2) {
        int limit = Math.min(s1.length(), s2.length());
        int len = 0;

        while (len < limit && s1.charAt(len) == s2.charAt(len)) {
            ++len;
        }
        return s1.substring(0, len);
    }
/**
     * Common prefix
     *
     * @param s1 a string
     * @param s2 another string
     * @return the common prefix of s1 and s2
     */
Common prefix
@param s1 a string
@param s2 another string
@return the common prefix of s1 and s2
Common prefix @param s1 a string @param s2 another string @return the common prefix of s1 and s2
static String prefix(String s1, String s2) {
        int limit = Math.min(s1.length(), s2.length());
        int len = 0;
        while (len < limit && s1.charAt(len) == s2.charAt(len)) {
            ++len;
        }
        return s1.substring(0, len);
    }
static String prefix ( String s1 , String s2 ) { int limit = Math . min ( s1 . length ( ) , s2 . length ( ) ) ; int len = 0 ; while ( len < limit && s1 . charAt ( len ) == s2 . charAt ( len ) ) { ++ len ; } return s1 . substring ( 0 , len ) ; }
Common prefix
 @param s1 a string
 @param s2 another string
 @return the common prefix of s1 and s2
Common prefix @param s1 a string @param s2 another string @return the common prefix of s1 and s2