Trim trailing whitespaces