strip key if has spaces

current version.
if key has space
```has. space```
then 
```yaml
has:
  " space": something
```
this patch is
```yaml
has:
  space: something
```