hi there, the long thread like thing could be mucus which could be discoloured. You should get a urine routine and microscopy and a culture test done to rule out UTI which could explain the cramp caused due to cystitis
. You could start with consuming lots of fluid and syrup citralka to decrease the cramp. According to your urine report antibiotics may be started to clear the infection.Hope this helps. Take care.