Adjusted code for console print out. Also added code for Sting problem.