Fix for issue #85

All extract methods will call toString method if the object is not null.