Tickets bought at train-station windows tend to be easier to change (or have refunded) than tickets bought online. In some cities you can avoid trekking to the train station by visiting a neighborhood travel agency or branch office of the national railroad.