find the index of sub string 'a' in string `str`,str.find('a')