Yes. The tail of a single-character string is ""
.
If you reverse it, you get ""
.
And if you put 'X' at the end of it you get "X"
.
The following bubble diagram shows this working with the string "Apple". Each bubble is labeled with the character it appends at the end of the string it gets back from the bubble it calls.
In the above, what character is the first one removed from the string?
What character is the last one appended to the reversed string?