Add a regression test for validating various string types with the public API