Added conditional  for length of word