Fix for "Object #<Object> has no method trim"