Trim whitespace from filenames on save
Add file empty check
Picky picky...
Merge pull request #2336 from ghost1227/issue/2331

Trim whitespace from filenames on save