Fixing Error in Displaying String for Dialog