I would specify the estimated length of the string as a constructor parameter instead.