Discharge in pregnancy

I’m 12 weeks 5 days pregnant and I’ve just had a yellow string type discharge with a tiny speck of blood. I feel ok otherwise. Just constipated. Has anyone else had this, if so what was the outcome?