Remove spaces from automatically added ids during /expand