added null check in toString
removed null check from rowToString