remove trailling spaces