def author_en_default(val):
    """Returns the author name in the order of (1) given name, (2) family name.

    Args:
        val (str): name string.

    Returns:
        str

    Examples:

        >>> # Example1: with comma
        >>> name = "Handai, Taro"
        >>> author_en_default(name)
        "Taro Handai"
        >>> # Example2: w/o comma
        >>> name2 = "Taro Handai"
        >>> author_en_default(name)
        "Taro Handai"

    """
    val = str(val)
    vals = [s.strip() for s in val.split(",")]
    if len(vals) == 2:
        return "{} {}".format(vals[1].title(), vals[0].title())
    return val