Use object's implicit toString() to avoid potential NullPointerException.