reduce spaces test cases