Optimize memory access times for StringBuilder

Prealocate StringBuilder with expected size