When i pull my foreskin back some of is like come of and has some small things in it and it hurts

Its like detached from the.middle of it when pulled back