Trim spaces on save