remove spaces before percent