def name_without_commas(name):
    """
    Takes a name formatted as "[LastNames], [FirstNames]"
    and returns it formatted as "[FirstNames] [LastNames]".
    If a name without commas is passed it is returned unchanged.
    """

    if name and "," in name:
        name_parts = name.split(",")

        if len(name_parts) == 2:
            first_names = name_parts[1].strip()
            last_names = name_parts[0].strip()
            return first_names + " " + last_names

    return name