Fix numbers with trailing spaces

They were causing a bunch of errors:
```
MapperParsingException[failed to parse [defscore]]; nested: NumberFormatException[For input string: \"7 \"];
```