'Finds the index of the end of start of a string.  In other words, the
first single or double quote.
Arguments:
template: The template to be searched.
start_index: The start index to search.
end_index: The end index to search before.
Returns:
The start index of the first single or double quote, or None if no
quote was found.'

def _find_string_start(self, template, start_index, end_index):

    quote_regex = re.compile('[\'"]')
    start_match = quote_regex.search(template, start_index, end_index)
    if (start_match is None):
        return None
    else:
        return start_match.start()
