You can probably write this as
```javascript
data = data.split(/\r?\n/);
data = _.chain(data)
             .compact()
             .map(function(line) { return line.trim(); })
             .filter(function(line) { return line.indexOf('FOUND') > -1; })
             .value();
```