They certainly appear to be Tubifex Worms, I lot of aquarists actually prefer to have tubifex worms in their substrate, makes for a good fishy snack! Not sure how you'd get rid of them if you don't want to keep them, I've never had this problem before...