remove spaces before test