public static function replaceLastOccurrence($sString, $sReplace, $sSubject)
    {
        $iPos = strrpos($sSubject, $sString);

        if ($iPos !== false) {
            $sSubject = substr_replace($sSubject, $sReplace, $iPos, strlen($sString));
        }

        return $sSubject;
    }