remove trailing spaces for time-elements word