check_length function

Check Length