Updates StringWriter.