only replace curly braces preceeded by a space
Merge pull request #4 from ralph/master

only replace curly braces preceeded by a space