ch12:string class add compare method