Fixed a bug during string building.