Fix string.split method and unit tests

Fix string.split method and unit tests