remove the leading and trailing spaces before and after the curly braces