splitter function

Split Function