Fix white space and mismatched braces