Add function for determining stem of file name.