def string_fraction(numerator, denominator):
    """
    Format a fraction as a simplified string.
    """
    if denominator == 1:
        return f"{numerator}"
    else:
        return f"{numerator}/{denominator}"