- insert spaces
- change test for undefined