check Threshold  for String.Empty

fixes #1972