Autosave for whitespace-only titles

closes #4625
- trim white space form `titleScratch` to enable autosave for
whitespace-only titles