Replacing deprecated split for explode