String::substr
Cases where the end position is either equvalent to the default or past the end of the string.
nullptr
Ref
Ref.is_null/valid