You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: Pageview.m
    path of file: ./repos/CellExplorer/calc_CellMetrics/+mga/+hit
    
    the code of the file until where you have to start completion: classdef Pageview < mga.hit.Hit
    %PAGEVIEW Pageview hit type
    %
    %   p = Pageview(path)
    %
    %   p = Pageview(..., 'Name', Value) constructs pageviews with optional
    %   properties:
    %       - Title
    %       - NonInteraction
    
    properties (Constant)
        Type = mga.hit.HitTy
    
function tf = validateFirstChar(str, chr, prop)
            %VALIDATEFIRSTCHAR Validate that the first character in a
            %string matched the requested character.
            
            % assert that the first character in the string is as requested
            assert(strcmp(str{1}(1), chr), ...
                'Pageview:invalidFirstChar', ...
                "Expected first character of '" + prop + "' to be '" + chr + "'");
            
            % return true so that validation can be used in logical
            % statements
            tf = true;
            
        end