Add validation to the nullOrString properties