return unless defined $str;