isValid

isValid(): Boolean;

The isValid method of the StringUtf8 primitive type returns true if the receiver is a correctly formatted UTF8 string.