Minor bug fix: string length calculations.