Check data length