Bug 1029639 - called .strip and added cases to the test