def strip_spaces ( s ) : return u" " . join ( [ c for c in s . split ( u' ' ) if c ] )
python function to remove spaces in a string
Strip excess spaces from a string
def strip_spaces(s):
    """ Strip excess spaces from a string """
    return u" ".join([c for c in s.split(u' ') if c])