Hittest for bullets

hello,
i am developing a game or trying to at least. Its a space shooter type of game. But I cant figure out how to do hittest for hero’s bullets on enemmies because there are soo many diff enemmies with diff names and the bullets are names incrememntely also like bullet1 bullet2 bullet3… so i cant do a hittet on name. I was wondering how i would solve this problem.