update rm_end_space.py