public static function beginsWith($input, $search, $caseInsensitive = false, $encoding = self::DEFAULT_ENCODING)
    {
        $substr = static::sub($input, 0, static::length($search), $encoding);

        return (static::compare($substr, $search, $caseInsensitive) === 0);
    }