fixed string length check