Could be planaria; are they whitish strings that wiggle? If so it could be planaria, which is often caused by overfeeding and undercleaning. Do some water changes with deep substrate vacuums. Also check your filters for buildup of old food, etc, you might want to gently swish them in some old tank water during the water change. Try cutting back on feeding and see if that helps too.