Swap extension and Get file name