I am using an existing string for other requirements (i.e. I dont want to change it) but need to filter out the file extension. I see basename as being a very good option for doing so but cannot seem to get it to work. Does anyone have a suggestion?