What is the origin of the phrase No Strings Attached?

It is from the cloth industry, where a small flaw was seen in the manufacturing process of fabric, a string was inserted so the flaw could be easily identified. If 'no strings attached' the cloth was perfect.