Fix cell merging to not result unneeded white spaces