minor bug fixes. toBe needed to trim the text for comparison. renderer needed to check for offset.