Truncate text formatter