tampons

hey this is maybe a weird question but I'm using tampons for the first time. the package says you can pee when the tampon is still inside of you. but how to do that without that little string thats attached to the tampon getting wet and dirty?