IUD String

I have a mirena IUD and I know the string is supposed to be available, otherwise that could have negative consequences. Still, I'm scared that during sexual activities (masturbating/fingering) I'll accidentally pull it out. Is this a thing? If yes, how could I ensure avoiding any accidents?