Found an even better php function to strip characters without loosing words:
Copy and paste this into your theme_folder/functions.php file:
//function to call and print shortened post title
function the_title_shorten($len,$rep='...') {
$title = the_title('','',false);
$shortened_title = textLimit($title, $len, $rep);
print $shortened_title;
}
//shorten without cutting full words (Thank You Serzh 'http://us2.php.net/manual/en/function.substr.php#83585')
function textLimit($string, $length, $replacer) {
if(strlen($string) > $length)
return (preg_match('/^(.*)\W.*$/', substr($string, 0, $length+1), $matches) ? $matches[1] : substr($string, 0, $length)) . $replacer;
return $string;
}
And then call it in your template file:
<?php the_title_shorten(15,'...'); ?>