Genetic string validation