Good advice in the previous post. They look like detritus worms to me. Planaria have a distinctive triangular head. Do some googling yourself and look at images, though, because there's always a risk of error with pictures online.
joy to the fishes in the deep blue sea
55, 30, 30, 20, 10, and 10-gal. freshwater tropical tanks