change writeString impl