Changed code to break long names in the middle