I think using ```.splitlines()``` would be better here to strip out any carriage returns that may also be there if the user hand-edited any of the parameters for example.