Replace opaque rstrip() with assertEqualSplits()