Replace information in different file formats