Adapt heading in different file formats