They could be planaria which are relatively harmless but who knows. I personally wouldn't take any chances if I was starting off a new tank. I would bleach the whole tank and filters rinsing it out extremely well . Then I would start a fisless cycle. It might take a month but it would be worth for a fresh start.