Add string unit tests, fix jshint warnings