Fixed bug with building string