In the US, you have up to 24 hours to cancel your flight without any cancellation fees. If you do not catch the misspelling of your name as it is on your ID card or passport, you can be denied entry through security. You might have to buy a new ticket.