Hello Lina,
Thanks a lot, actually I was trying to knw if there was some ready made command for this purpose.
But as I cannot find one so I'll be doing the same INSHAALLAH. Thanks.