def create_filename(file_name: str, extension: str) -> str:
    """
    Replaces white spaces of the string with '-' and
    adds a '.' and the extension to the end.
    :param file_name: File name
    :param extension: File extension
    :return: str Transformed filename
    """
    return file_name.replace(' ', '-') + '.' + extension