Fixed toString method