Hey, I got a question for you guys. Let's say I have a string (sentence), I want to be able to check to see how many words are in the string. If the amount of words exceed a certain amount (6) I want to cut the rest off and add "..." to the end.
example:
"Hello, my name is Damascus and I am cool"
to
"Hello, my name is Damascus..."
How would I go about doing something like this?