Fixed linefeed issues in headers

By using trim(), we can make sure there are no unwanted linefeeds in our
headers.
Merge pull request #21 from R0ro3lectr0/master

Fixed linefeed issues in headers