Remove some warnings about typecasting strings.