Change chomp to strip, to remove carriage returns