Trim whitespaces of various db fields in validation.