Flexible elongated elements integral with or attached to bags or sacks ; Fastening thereof to the bag before closing