Holding a String in a variable and changing it??

Sort of right, but there was a post which said "Who told you to put the function inside another function" which was clearly not going to be helpful to an absolute beginner. It maybe made the poster feel superior, but was clearly not intended to help the original poster.

There was code posted. OP took that code and made significant changes that made it fail to work. I was the one that asked who told OP to make those changes. I figured it just might be enough of a hint to OP to use the code as posted, without modifying it.

Apparently, I was wrong.