add calculate number of chars