Fix a typo in a ValueError message

Hi,
this just fixes two typo's in the message of a `ValueError`.