Remove trailing whitespace
Support file in responses