Fixed #1. Remove unwanted spaces on save.