For the search result, remove the redundant station names at the start
and end.