Fix issue with whitespace not being handled by the client.

For some reason the client doesn't like lines with just white space in them.
And i checked for compiles errors this time :wink: