def with_leading_upper(example):
    """
    Changes the leading letter of the text of example `example` to uppercase.
    """
    text = example.text
    for (i, c) in enumerate(text):
        if not c.isspace():
            text = text[:i] + text[i].upper() + text[(i + 1):]
            break
    example.text = text
    return example