Thanks Dave for the helpful answer.
After reading your reply i figured out that this is what I actually needed.
I had no clue how to convert table to text and store that resulting text in a variable for further use.
Thanks again for your reply.
I will post my final working code as soon as it gets done.
Please point out how to do a GREP find/change on text.
Thanks and regards.