title: how to find a word(string) in excel whether it is present in excel file (xlsx) or not?
body: <p>how to find a word(string) in excel whether it is present in excel file (xlsx) or not ? </p>
  
  <p>I have to find a string and replacing it with some other srting.</p>
  
  <pre><code>def xlsxElementsRemove():
      print(xlsxFileList)
      for i in xlsxFileList:
          data = pd.read_excel(i)
          data1 = data.replace(np.nan, '', regex=True)
          data1.columns = data1.columns.str.replace('Unnamed.*', '')
          for j in userInputForRemove:
              pattern = re.compile(j, flags=re.IGNORECASE)
              data1 = data1.replace(pattern, '', regex=True)
          data1.to_excel(i, index=False)
  
  xlsxElementsRemove()
  </code></pre>
  
  <p>here i am getting one issue like suppose i have word "stackOverflow" in excel file(xlsx) but when i am giving input as "stac" , "stackOver" , "stackOverflo" its replacing. All i need when i give input as "stackOverflow" then only it should replace the word otherwise not.</p>