Remove leading and trailing whitespace when choosing filenames. Fixes issue #401.
Merge pull request #404 from sledgehammer999/del_whitespace

Remove leading and trailing whitespace when choosing filenames. Fixes is...