compare strings to strings when transitioning to shipment states

Fixes #3105