Modify trait in various file formats