Smarter check for nucleotide