Remove spaces from object attribute access