Lop off the extra space at the end of a decoded length string
Add unit tests for core types