Mechanisms Behind the Chaperone Activity of Nucleic Acids