fixed StringWriter indent problem