Removes leading and trailing whitespaces in string. Returns length.
int
Используется в ScriptedWidgetEventHandler::GetValueString().