updated the string length