def get_books_matching_title(search_str, books_list):
  """
  Get a dictionary of books and their authors based on search string

  Parameters:
    search_str: String to search for(case-sensitive).
    books_list: The list of book to search in
  Returns:
    books_with_authors: A dictionary of books with their authors.
  """
  print("You search for books with " + search_str + " in their titles")

  books_with_authors = {}
  for book in books_list:
    '''Check if the book's title has search string'''
    if search_str in book["title"]:
      books_with_authors[book["title"]] = book["author"]
  return books_with_authors