n. 1. a. A cutting or clipping to make neat: My hair needs a trim. b. An excess or unwanted part that has been removed: cut off the trim. 2. a. State of order, arrangement, or appearance; condition: in good trim. b. A condition of good health or fitness: keeping her body in trim.
The trim() method of String values removes whitespace from both ends of this string and returns a new string, without modifying the original string. To return a new string with whitespace trimmed from just one end, use trimStart() or trimEnd().
Definition of trim verb in Oxford Advanced Learner's Dictionary. Meaning, pronunciation, picture, example sentences, grammar, usage notes, synonyms and more.
to put into a neat or orderly condition by clipping, paring, pruning, etc.: to trim a hedge. to remove (something superfluous or dispensable) by or as if by cutting (often fol. by off): to trim off loose threads from a ragged edge.