friends..i am breaking my head from the morning over a little piece of code..

the requirement is ..if the input is "MIKE"...it will store the string as MIKE.*
if the input is "MIKE.TXT"(or any extension)....it will retain the filename with that extension..

please help me here