Updated string length program