Bug fix for https://github.com/greenmanspirit/journal.txt/issues/27

I have added code and tests to deal with this. I now check to see if the contents are empty after I strip it to get rid of leading and trailing whitespace. Testing it with nano and it appears to be working correctly now.