'Init method.
Arguments:
template: The template to be searched.
start_index: The start index to search.
end_index: The end index to search before.'

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

    self.end_index = None
    self.quote_length = None
    self.string = None
    self.string_inner = None
    self.start_index = self._find_string_start(template, start_index, end_index)
    if (self.start_index is not None):
        result = self._parse_string(template, self.start_index)
        if (result is not None):
            self.end_index = result['end_index']
            self.quote_length = result['quote_length']
            self.string = result['string']
            self.string_inner = result['string_inner']
