Added some validation

- Stat names allowed spurious characters at either end
- Values allowed anything at all