Create replace_space