adjust string length