Fixed behavior of within to remove special case.

Let's do that. Only do v in [s[i], s[i+1]) for the whole range and let the user handle v == s[len(s)-1].