Check If Two Array Contains Python String Replace At Index