Truncate text to a specified width
