def group_reference(string):
    string = ''.join(string.split())
    return ''.join(e if (len(string) - i - 1) % 5 else e + " " for (i, e) in enumerate(string)).strip()
Hit test the frame for resizing.
dataset/ETHPy150Open kapsiry/sikteeri/membership/utils.py/group_reference--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/q_dock_frame.py/QDockFrame._resizeBorderTest