Hi, @fatimawork
Do you use InDesign?
It's very easy to do in InDesign.
1. Enter 1, 2, 3 Instead of each allergen image in your textframe.
2. Grab the first allergen png and cmd + c (copy)
3. cmd + f (find/change)
4. enter 1 into Find what
5. press @ in chang to , and then click 'Clipboard contents, Unformatted',
6. press 'Find next' button, and then 'change' button.