truncate to token_size