truncate long topic of a program