A few questions if you don't mind.
How long have you had the rainbows?
Did they all start stringy poo at the same time?
What colour is the poo? (yes I know

)
It would be unusual for a whole shoal of fish to come down with some infection/infestation at the same time if you have had them a while. If it's only been a few weeks to a couple of months then it could take that long for something to show up. Longer than that it shouldn't be anything they had when they arrived in your tank. And an infection brought in by a more recent fish shouldn't affect all the rainbows simultaneously.
If you've had them more than a couple of months and the stringy poo affected them all at the same time, diet seems the most likely cause.