Fix string parsing
Added a testsuite and testrunner