Added new method checkFileName into MapParser