Trim expected and actual data before comparing

It seems that the Zend test runner ignores at least trailing space, so some of the Zend tests fail when run under HHVM due to different space at the end.