Remove trailing whitespace in models