Merge empty strings and nulls on client side for speed