in reply to Why is the valu of the hash not geting printed

You pass one argument to CatchText, and you expect the parameter second to contain something.