I'm trying to remove all white spaces before and after 3 consecutive periods and replace it with the actual ellipse symbol. 

I've tried the following code:

```
sed 's/[[:space:]]*\.\.\.[[:space:]]*/…/g'

```

It replaces the 3 periods with the ellipse symbol, but the spaces before and after remain.

Sample Input.

```
hello    ...   world

```

Desired output

```
hello…world

```