modified subgroup_title to accept large strings