Add assert_equal_ignore_whitespace helper.

We should be testing the behavior, not the implementation (e.g.
exact formatting of strings) in the unit test.

In the future, even if the format of output changes, we won't
have to match every single space in all test cases.

\cc @senny