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