eliminating trailing whitespaces