Extra "0" is printed at the end of each reversed string.
The following is the exact output of my attached repl.
Does anyone have any idea why this 0 is there? I can't seem to get rid of it. I read online about the 0 being the terminator for the string but if so, how do I not print it?