```.split("\n")``` is taking care of this for us.
```
"rhel-x86_64-server-6\nrhel-x86_64-server-6-cf-me-2\n\n\n\n\n\n\n".split("\n")
=> ["rhel-x86_64-server-6", "rhel-x86_64-server-6-cf-me-2"]
```