incorrect spliting of data

image

whitch was produced by this code

image

And This shouldn't be the case since it should be seperated by the & chararacter But It wasn't separted correctly This needs to be fixed asap