toString correctly handles existing methods