remove blank at the end