RemoveSpaces() is moved inside Autosave(). Autosave() is refactored and executed on InsertLeave also.