style, remove ending spaces.