strip key if has spaces

current
```has. space```
```yaml
has:
  " space": something
```
this patch is
```yaml
has:
  space: something
```