There is no need to state a \ for a global function name.  trim() itself will work.