adding in functions to split input text
Merge remote-tracking branch 'upstream/master'
replace newline with space