Truncate whitespace on save