corrected issue printing string