//from http://stackoverflow.com/questions/2736753/how-to-remove-extension-from-file-name\r
// remove_ext: removes the "extension" from a file spec.\r
// mystr is the string to process.\r
//from http://stackoverflow.com/questions/2736753/how-to-remove-extension-from-file-name\r
// remove_ext: removes the "extension" from a file spec.\r
// mystr is the string to process.\r