Add string validation tests.