Thanks for writing to health care magic.
Is that cord hanging out of the anus or the urinary meatus
. Without a detailed description it is very difficult to answer your query. If it is hanging out of the anus it could be a worm. A stool routine examination will help to idetify the cause. Please consult your doctor for the same.
Continue to ask further queries as required.
Hope this helps.
Dr Y V Siva Sankara Murty,