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.