strdup checking