It's a leather string that's used to tie a cowboy hat on, usually running under the chin. It's pretty much to keep the hat from being blown off. It often has decorative tassels on the end. Occasionally, stampede strings are made of horsehair.
(Cowboys have colorful names for things)