what do dna and rna have in common
The simple summary is that DNA makes RNA, and then RNA makes proteins. DNA, RNA and proteins all consist of a repeating structure of related building blocks (nucleotides in the case of DNA and RNA, amino acids in the case of proteins). In general, they are all unbranched polymers, and so can be represented in the form of a string.