Removing extra space after else without curly braces