Replace deprecated string.split()