Bnf trim function name and add close bracket