Hairpin Structures in DNA Words