(1) If a defendant be charged or prosecuted by a wrong name, unless he declare his true name before pleading he shall be proceeded against by the name in the complaint, information or indictment.(2) If the defendant states that another name is his true name, it shall be entered on the minutes of the court; and the subsequent proceedings on the complaint, information or indictment may be had against him by that name.