/^\s+$/ requires at least one blank character. /^\s*$/ would fail empty lines too.
In reply to Re^7: Read CSV with column mapping by huck in thread Read CSV with column mapping by coretele