Fix mistake - was using echo instead of adding to output string