def clean_extra_spaces(value):
    p = re.compile(r'\s+')
    return p.sub(' ', value)
Receive any XMPP message, at the moment it expects the message to
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/haystack_utils.py/clean_extra_spaces--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/api/views.py/api_vendor_xmpp_receive