Thanks for contacting healthcare magic.
You have problem of
constipation.
Do following care like......
Do regular exercise more than 30 minutes.
Drink more water.
Eat high fibers food like whole grains, black bean. ....etc.
Avoid gaseous foods like cabbage, cauliflowe,onion,broccoli etc....
Avoid spicy foods and oily foods.
Avoid too much fatty foods.
Don't take alcohol.
Stool softner can use for constipation problem.
Bulk former agent like
psyllium or methyl cellulose can use.
You complain that string like stool present.
Stool examination test is helpful for diagnosis
Colonoscopy is helpful for further diagnosis.
I hope my guidance is helpful yo you.
Take care.
Thank you very much.