forgot update in writeString example