next if $_ =~ /^\s*$/; # also removing lines with only white spaces