Convert earlyvalidate to $str_ref.
Add use warnings.