public static function strReplaceOnce($pattern, $replacment, $subject)
    {
        $index = strpos($subject, $pattern);
        if ($index !== false) {
            return substr_replace($subject, $replacment, $index, strlen($pattern));
        }

        return $subject;
    }