I think,
```scala
children.map { c =>
  // build some lines from c
}.mkString("") // this is faster and clearer.
```