import re


def checkName(name: str) -> bool:
    """
    Checks if a string is a valid name
    Only spaces and alphabets allowed

    Parameters
    ----------
    name: str
        The name to be Tested

    Returns
    -------
    bool
        True/False according to the validity of the name
    """

    return type(name) == str and bool(re.match(r'[a-zA-Z\s]+$', name))