Stringy poop is caused by mucus in your stools.
Conditions that can cause mucus in your stool and stringy poop are Crohn's disease and Ulcerative Colitis.
Irritable bowel syndrome is also another condition that can cause mucus in your stool and stringy poop.