Removes the extension of a path.
See string.GetExtensionFromFilename for a function to retrieve the extension instead.
Demonstrates the use of string.StripExtension