def _no_spaces(string, replace_with='_'):
    """
    Remove whitespace from a string, replacing chunks of whitespace with a
    particular character combination (replace_with, default is underscore)
    """
    return replace_with.join(string.split())