Updated the StringValidator to optionally allow null to pass

Updated the StringValidator to optionally allow null to pass

issue: A24Group/Triage#2540