Changed control flow to ternary operator.
Added comments.
Removed comments and clarified the issue.
Commented out failed assertion.
Converts array of lines to string of lines.