finished splitInput method of splitter class