remove unnecessary blanks