public static function fromString($csv, array $option = array())
    {
        $lines = array();

        if ($csv !== '') {
            if (!preg_match('/(\r|\n|\r\n)\Z/m', $csv)) {
                $csv .= "\n";
            }

            preg_match_all('/[^\r\n]*(?:\r|\n|\r\n)+/m', $csv, $matches);

            $lines = $matches[0];
        }

        return self::fromArray($lines, $option);
    }