please get a lower gi endoscopy done that is colonoscopy to rule out ibs, ulcerative colitis and crohs disease.
it means an endoscope with camera will see your large bowel and rectum and take a biopsy so that pathologist can then see in microscope for ibs
as your problem is persistent you should get an endoscopy done
Next Steps
colonoscopy or sigmoidoscopy
Health Tips
avoid delay in diagnosis and avoid spicy food