Correctly find parsed string lengths instead of relying on memory being
zeroed.