public function trim(&$MappedName, array &$ArgumentExpressions, $Direction = 'BOTH')
{
$MappedName = 'TRIM';
$TrimCharacters = isset($ArgumentExpressions[1]) ? $ArgumentExpressions[1] : Expression::Constant(" \t\n\r\v");
if (!$TrimCharacters instanceof EE\ConstantExpression || strlen($TrimCharacters->GetValue()) !== 1) {
throw new PlatformException('Mysql does not support trimming a set of characters');
}
$ArgumentExpressions = [Expression::Multiple([Expression::Keyword($Direction), $TrimCharacters, Expression::Keyword('FROM'), $ArgumentExpressions[0]])];
}