Change the code to accept extensions that are mix case