Fixed incorrect string length