Replacing split function by explode