Fixed bug with attend to append to a string instead of +=