Splits makeStringList and getOutput, adds passing tests.