Line 69 indicates that output could be nil; what happens if we call `#chomp!` here on nil?