Strip trailing whitespaces