added exclude parameter

The exclude parameter needed to be added because each will not iterate over a string in Ruby 1.9.3. Need to use each_line instead.