fix trailing whitespaces