Use a StringWriter