Python String Find Index Of Element Matlab