name); $search = strtolower($this->triggerValue); $part = substr($fromAccountName, 0, strlen($search)); if ($part == $search) { Log::debug('"' . $fromAccountName . '" starts with "' . $search . '". Return true.'); return true; } Log::debug('"' . $fromAccountName . '" does not start with "' . $search . '". Return false.'); return false; } }