@Override
    public String toString() {
        StringBuilder result = new StringBuilder();

        if (this.lineCount() > 0) {
            for (int i = 0; i < this.lineCount() - 1; i++) {
                result.append(this.getLineAt(i).toString());
                result.append("\n");
            }
            result.append(this.getLineAt(this.lineCount() - 1));
        }
        
        return result.toString();
    }