how do I chop of characters at the end of a line...

Entelin plug-discuss@lists.plug.phoenix.az.us
03 Mar 2003 21:38:55 -0700


I want to take a variable say  a="string.txt"  and chop off the last 4
characters so I can make variable b equal to just "string"

Thanks for your help