pass string to DocParser (makes it easier to unit test)
add a few unit tests for DocParser