Why is this list not replacing the string values