format topic labels