Get Array Index Python String Methods Replace