I am using this code to check whether a cell is not empty. If it is not empty the next function runs etc etc.

However, I would like to modify the code so it searches for specific letters in the cell. 

The data in the cell may be similar to M35, W40 or F20-39 and many variations. I need to search for the M, W and F. If those letters are NOT present then the function should run. If they Are present then the else function should run.

Thank you in advance for any help with this.

```
      function checkT2() {
      var sh = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
      var cell = sh.getRange("T2").getValue();

      //check if cell is not empty
      if (cell) {
      SplitNames();
      } else {
      fullNames();
      }
      }

```