def normalize_whitespace(s):
    assert isinstance(s, six.string_types)
    return re.sub(r'[\x00-\x20\s]+', ' ', s.strip())
Strips the string and replace all whitespace sequences and other
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/normalize_whitespace