string length fix