added string method like before