Expressed in plan English
if $mystring has more then 25 characters?
then
cut $mystring down to 22 characters and add string "..." to the end of $mystring
So, that was just a little example of what I'm trying to get at (Note: Think me odd, I am odd, I work in very strange ways).
I'd probably need, I'm not sure, a function that can add "..." at the 22nd character if the string if the length of the string is larger then 25 characters.
The reason I need this is because I don't want a string to be longer then 25 characters, and if it is then make it 22 characters with "..." at the end (thus 25 characters, 22 + "..." = 25).
Hopefully that's enough said, ask questions if I didn't cover anything. Thanks for reading my post.