
I've been a fan of velcro for cable management for years. Magnets are also a good option. I like the benefits of both. This is particularly useful if the item with the string is metal so the magnet will hold the string directly against the item.

50Pcs Adhesive Cable Clips, Cord Holder Wire Management For Car, Office And Home (Black)
42 Review

Heavy Duty 8 Inch Nylon Self-Locking Cable Zip Ties - 100 Pack In Black
52 Review

Organize Your Cords With LuBanSir'S 3 Pack Extension Cord Storage Straps
27 Review

25 Pieces Desk Wire Organizer Cable Ties Zip Ties Adhesive Cord Clips Cable Management Cord Keeper Desk Wire Management
25 Review