I have done some research because my 5 year old daughter had similar objects in her stool.
It is called a "ropeworm" and they infect 1 out of 4 people, very common but most people don't even know they have them because they don't bother to check.
Ask your doctor for the appropriate methods to rid your body of them.
I only started looking because they cause weight gain and my five year has gained a lot of weight in the last 3 months. Blood tests and everything were negative for everything we could possibly test for. I was out of options until one day she complained about a stomach ache...an hour later one of those came out into the toilet and only that..no stool along with it. I didn't know what to make of it at first but it definitely wasn't stool.