I'd consider using the `write` with the `EOS` directly rather than using a variable.