Removing trailing whitespaces