String parsing issues

fixes #28, #33, #36