Remove trailing whitespace in ruby code