remove spaces from JSON