rm_end_space.py - bugfix for var error.