Function split() is deprecated

Function split() is deprecated.
Merge pull request #393 from kanakiyajay/patch-1

Function split() is deprecated