Fix to.have assertion with strings

refs #12