remove spaces from input