remove spaces for optimization