Design a Python program to search for a substring in a given string.
str = "This is a string";
substr = "is"
def searchSubstring(str, substr):
  for i in range(len(str)):
    if str[i:i+len(substr)] == substr:
      return i

    return -1