fix spaces in curly braces