Wahey! sentence is a character vector with 1 element. The element is made out of 4 words and 17 characters, but that doesn't affect the vector length.
sentence
Might it be that the entire sentence is only 1 element in the vector?