added toString checks