added test for spaces