Try catch

Try catch in split fucntion (separationXY)