Are they moving ie: wiggling? Do they resemble a tiny worm? Is so then it is planaria. It is not harmful. They appear when you have an abundance of left over food that settles in the substrate. Some fish eat them. More water changes with vacuuming the substrate and feeding less will help. Again, they are not harmful. If it is not what I described then hopefully someone else will chime in.