It’s called EZ Line and it’s basically an elastic thread. It’s pretty inexpensive and works quite well.
You can use plain old thread, but keep in mind it’s not flexible if you pull it tight, so anything that catches it after you put it up is going to break the line, the poles or something else it’s attached to.