(c backend) remove trailing spaces