Fix stringValidator issue

If conf->target.ptr is constant string, free will failed. In order to
avoid this situation, string type's default value is set to NULL.