Fixed writing when zero arguments, added string parsing.