Code to truncate long contact names

Code to truncate long contact names and display a tooltip with the full name when the contact is too long.
Should this take the first 27 characters (allowing for ...), rather than than just the first 8?