Store string length for later use