incorrect handling of str length for twits2