string length compensation