Remove trailing whitespace again and add semicolon