replace deprecated function split.