NovaSE there should be nothing stopping it from replacing the space
It is replacing the space. You can verify that:
print("before: ", place)
print("after: ", place.replace(" ", ""))
But you're not saving the result.
It's like going grocery shopping, placing items in your cart, and then walking out of the store without the groceries.