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