How to prevent StringBuilder append() to overwrite existing content? Should I use a different buffer?