update ending with a space