Using StringBuilder instead of StringWriter