    private String substr(String str, int start, int length) {
        return str.substring(start, start + length);
    }