Stip trailing spaces from actual instead of inserting them into expected -- more pythonic and more future-proof this way.