Stringy white mucose in urine and pain in the urinary tract?

Infection. These symptoms point towards an infection. You need to see the Doctor and get examined and testing done, so the appropriate treatment can occur. Best wishes.