remove spaces before [ in numbers