Search for bristleworm traps
But a water bottle with a hole big enough for them to crawl through on the cap and place a weight and some food in it. Drop it in at night and wake up to bristleworm party lol
It's a sign of a healthy tank. They will consume uneaten food that would otherwise decompose in your tank. I wouldn't mess with them. You will do more harm then good.