The court shall ascertain the correct legal name of the defendant and may amend a judgment to correct the defendant’s legal name. (CCP 116.560)