Add splitBySpaces method tests
Add splitBySpaces method