I always hate that I loose shorts strings on my shorts.
Then I remembered I had a 3D Printer.
Knots work but they eventually work their way in.
This keeps the knot from making the hole bigger and eventually getting in.