private boolean containsExpression(String toSearch,String expression){
  if (toSearch == null) {
    return false;
  }
  return toSearch.equals(expression) || toSearch.indexOf(expression) >= 0;
}

private boolean containsExpression ( String toSearch , String expression ) { if ( toSearch == null ) { return false ; } return toSearch . equals ( expression ) || toSearch . indexOf ( expression ) >= 0 ; }
checks if the tosearch string contains the expression .
