transforming file extension to lower case