Removes ending space