f you need to return or exchange your ticket, it is important to remember that the conditions of return or exchange is depending on the airline rules, the fare selected, the time before departure, travel agency rules (if applicable), and some other factors.
You can typically read these rules during the ticketing process. If you do not remember the conditions, you can always check them with the company where the tickets were purchased or directly with the carrier.
If you have made a mistake when you enter your name, it is often not the deciding factor - many airlines make up to three mistakes. But it's better to be safe than sorry, so it's best to check to see if you'll be allowed to travel with such errors (regardless of how they were made). It is usually best to contact the airline directly for the most accurate and prompt answers and corrections.
In any case, after you purchase your ticket, you will find a reservation link (typically 6 letters) in your confirmation email. With this link and your name/surname, go to the airline website and find the "Manage booking" page. Enter your information, and you will be able to see the details of the ticket and the ability to manage it.