How can i strip the spaces with proper format?

Use str.replace:

df['string'] = df['string'].str.replace(r'\s\s+', ' ', regex=True)