Change spaces to hash