engine - trimming values before saving