             result.append(contentsOf: Substring(lines[idx]))
         }
     }
-    
-    print( "\n>>>\(result)<<<\n" )                 // debug
     
     return String(result)
 }

        }
        newLines.insert(line, at: newLines.startIndex)
    }
    
    for line in newLines { print(String(line)) }   // debug
    
    lines = newLines
    newLines.removeAll()
    print()
    for line in lines { print(String(line)) }     // debug

    var result: Substring = Substring()

    for idx in lines.indices {
        if idx == lines.startIndex {
            result.append(contentsOf: Substring(lines[idx]))

        }
        newLines.append(line)
    }
    lines = newLines

    newLines.removeAll()
    for idx in lines.indices.reversed() {
        let line = lines[idx]
        if newLines.count == 0,
