Fixed bug with printing a string