add trim function,  fix path of bindings module