Works without the deprecation error (even with the split method).  But ONLY if invoked from Main, not a REPL.