split to remove extensions