make sure that words are not accidentally removed when there is no whitespace before a curly bracket
add some tests with no whitespace before a curly bracket