remove spaces added in error