String Pattern confusion

string:find just returns where the matched characters start and end in the inputted string