20131126 set the string length to the correct value