Js Get Index Of String Python Functions