Removed some horrible string manipulations

This was a little late to get into my head, but:  If I'm trying to do
this line-by-line, it's silly of me to concatenate all lines into one
string, inserting newlines for the output to look right.

The print function prints newlines by default--let's just use that.