str: fix warnings.