Remove trailing whitespaces automatically.