Replace deprecated split() with explode().