string length fixes