in reply to How do I substitute the value of a variable if it is found in a string?
or any of the other answers for that matter? please don't ask us to do your homework.
Originally posted as a Categorized Answer.