The racist remarks were uttered on an Avanti West Coast train from London to Manchester.