A requested value of zero, or a value greater than the length of the string returns an error.