Charging cables usually get damaged and the rubber covering gets broken, exposing the wires inside which are prone to further damage. Here’s a simple DIY trick that can be used to protect the cables from getting broken or in case of them breaking; it will protect them from further damage.
Most of the ballpoints with the click and write option have a spring inside of them. Take out that spring from an old pen that is out of ink.
Twist it around the cable and firmly attach it. This ensures that the cable remains straight and it prevents the wire from breaking further.