fix calculation of return string length