replace deprecated function

'twas a misuse of split() anyway