When searching for a book the most accurate way to find a book is by searching using an ISBN.
An ISBN is a 13 digit code that is unique to each book. This code can typically be found in two places, the first being the back of the book above the barcode. If the ISBN is not on the back of the book you can also find it on one of the first two pages of the book as seen in the images below.
Many professors will include the ISBN in the syllabus for the semester and having those is ready when shopping for books is an easy way to ensure you are getting the correct item.