Playing with strings

I'm curious as to why you didn't use printf here but used it later on to do pretty much the same thing