Trim trailing whitespaces.