Split multiple formats correctly