• I did not use Right (..,..).

    I put each words into an array. and got the size of the array. if the size of the array is X, I got the last three words by words[x-2],words[x-1],words[x]

    each word occupies a space in array. not each character.