removes space before curly brackets