Replace a hand-written suffix compare with std::lexicographical_compare.

No functionality change.