Archer,
Thanks for your replay..i missed one point to explain you.
text variable may not contain 'ABCD' always it might be '123456789'.so in this case i want last 4 no.s
i.e 6789 remaining with 'x'.
text it should be filled like this 'XXXXX6789'
Regards,
Raj..