trim in functions