Remove extensions of file (need to be in file name).