refactors to create VALID_NUCLEOTIDES constant instead of method