added trim for define plugin