add pastetoggle and remove trailing space