add func load_words
add edge case for gen_all_strings
change func merge for immutable input variable