It's probably roundworm. I know that other pics posted seem to be more degraded and lighter, but your's could just be stained. Also, I have heard of people getting out worms that looked like earthworm.
Garlic is very powerful against worms. I think that it's especially effective when just starting to take it and they are not expecting it and learn to hide from it. I suggest you try to increase your dose, and eat very light for the next few days and see if you get any more, then you will know. Raw garlic is what brought out my first worms, and actually, I got out a 16 inch monster today after taking lots of garlic and centaury herb for a few days.
You didn't say why you were cleansing, did you think you had parasites or just general cleansing? Good luck and post an update please.