If a string got najis when the najis cloths are not washed properly. Can it become pak with the sun light? If it's difficult to flow running water over it, what is the other method to make it pak.

You need to purify it with water, if you don’t have running water then you use other types of water.