Thanks for the query.
According to your description, she may be having some fungal infection
The worm like things you mentioned could be thickened white discharge flakes or top portions of the skin lesions.
Sometimes worms infested the bowel can appear on the inner wear.
So if she is having any related symptoms, better to consult gynecologist once and get examined.
With the doctor's advice, she can go for vaginal swab culture and sensitivity. And if needed stool examination also.
After that she can take the treatment depending on the reports.
Both partners to be treated simultaneously to avoid future cross infections.