remove spaces from Ids