Thanks for query.
You might have multiple ailments taking part in your problem.
It is possible that you might have Tap worm infestation giving stomach problem.
Go for urine checkup and stool testing for ova and cyst
for worm infestation as you passed rubbery, strigy thing passing in your stool.
After reports go for the treatment accordingly.
Ok and bye.