Generates all the strings.