Removes trailing period by last elements 

As per @adam3smith's suggestion, removing the trailing suffix periods from those elements that are last in the group, as those would otherwise have to rely on consecutive periods getting collapsed into one, which can easily break by trailing spaces etc.