add space before and remove space after {