string length error fixed