code: private boolean isNotSymbol(String text, int index, char c) {
          if (index >= 0 && index < text.length()) {
              return text.charAt(index) != c;
          }
  
          return true;
      }
docs: Checking if symbol is not eq to c
  
  @param text
  @param index
  @param c
  @return