Thin, thread-like worms in your stool with night-time itching around the anus is a classic picture of threadworm (pinworm) infestation. It's extremely common and spreads easily through hands, bedding and clothing, so it's not something to feel embarrassed about.
Next Steps
A physician can prescribe an antiparasitic that clears this effectively without needing lab tests first, so please see one rather than self-medicating. Wash your hands and nails before meals, keep nails short, and wash bedding and underclothes in hot water for a few days.
Health Tips
Family members sharing your home often need treatment too, since threadworm spreads quickly between close contacts. Please consult a physician in person for the right treatment.