Updated label() to handle replacing multiple periods in a label.