Replace trailing whitespaces