Might want to include the invalid string in the error message.