parses a turtle string