Trim title and body before saving