omg what is this?!?!?

I had a miscarriage for 3 days ago and i was in hospital... i have a black thread  down there its like a tampong? i didnt know that i had this until i went to the bathroom .. does someone know what this is? i want to take it off but am scared!!!!!