public static function isPrefixed(string $data, string $prefix, string $separator = ''): bool
    {
        if ($separator !== '') {
            $data = trim($data, $separator);
        }
        return static::substr($data, 0, static::length($prefix)) === $prefix;
    }
public static function isPrefixed(string $data, string $prefix, string $separator = ''): bool
    {
        if ($separator !== '') {
            $data = trim($data, $separator);
        }
        return static::substr($data, 0, static::length($prefix)) === $prefix;
    }
public static function isPrefixed ( string $ data , string $ prefix , string $ separator = '' ) : bool { if ( $ separator !== '' ) { $ data = trim ( $ data , $ separator ) ; } return static :: substr ( $ data , 0 , static :: length ( $ prefix ) ) === $ prefix ; }
Is prefixed.

@param string $data
@param string $prefix
@param string $separator Default ''.
@return bool
Is prefixed .