strdup not working, switched to strcpy