Do not allow spaces at the end of folder name.
Closes #27