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