replaced chomp! with chomp