Use trim() to remove newlines

Huh, I had no idea it trimmed newlines out too.