Remove trailing whitespace. Remove new lines between closing brace and 'else'