Hello,
It is not possible to edit a ticket directly. You can buy a new Swiss Travel Pass and ask for a refund of the wrong one (before validity) via our online form.
Or, if you made a maximum of 3 mistakes for each name, you can keep the same ticket and travel without any issue. If you want, you can also get your pass validated at any SBB counter. Here are our opening hours.
I wish you a lovely stay in Switzerland,
Chiara_S