import re


def CheckFileExt(FileName, FileExts):
    """Check file type based on the specified file extensions delimited by spaces.
    
    Arguments:
        FileName (str): Name of a file.
        FileExts (str): Space delimited string containing valid file extensions.

    Returns:
        bool : True, FileName contains a valid file extension; Otherwise, False.

    """
    
    for FileExt in FileExts.split():
        if re.search(r"\.%s$" % FileExt, FileName, re.IGNORECASE):
            return True
    
    return False