attrstring_splitter refactoring.

- Replaced attrstring_splitter for split_attribute since it was failing
in some cases.
- Created a module for that function.
- Created tests for the same function.
Made connect_test.py work.