When the court has granted the petitioner's change of name request, the petitioner shall subscribe his or her new name to the written oath of allegiance.