public static function replaceFirst(string $search, string $replace, string $subject): string
    {
        if ($search === '') {
            return $subject;
        }

        $position = \mb_strpos($subject, $search);

        return self::replaceByPosition($subject, $replace, $position, $search);
    }