Better error message for SubString.