remove trailing }