Hold on are they red or white worms, they may be callamanus worms, I had an arowana that had it, treating your tank will not do anything unless you use benenzall, ill check the spelling in the morning and tell you what I used if it is.
Are they red worms hanging their, treat it quick bacause I think they lay eggs and anyfish that eats them will get it.
Dont pull them out they latch to intestants. Look it up. O I tried everything in the pet store if it is the C. worms, you need to get a dog, cat, or bird dewormer with febenzaull again ill look up the spelling. GOOD LUCK