Use six when checking for strings.