deal with whitespace before }