adding trim option to value bindings