check string length