The TrimFilter passes content through the PHP function trim. That is, it removes whitespace from the beginning and end of a string.
{$yourvar|trim}
"your string" -> "your string"