Parses fileName to extract information