The matching character function