State Change and acting on length of input