slice docs say substr instead of slice