Use setLength to reset StringBuffers
Refactoring

- Expand fragments only to StringBuilder
Refactoring