Fixed bug when printing strings and boolean values.