The word “oath” shall include “affirmation” in all cases where by law an affirmation may be substituted for an oath; and, in like cases, the word “sworn” shall include the word “affirmed.”