Add minimum length check to commands