Removing trailing whitespace error