Tiny update to store string length in var