def addext(name_str, ext_str):
    """Add a file extension to a filename
    
    :param name_str: The filename that will get the extension

    :param ext_str: The extension (no leading ``.`` required)

    :returns: The filename with the extension
    """
    if not ext_str:
        return name_str
    return name_str + '.' + ext_str
