Checking the length of parameters