Program is correctly building string to send to gui