writeString

writeString function added.