extracts generate_char and generate_number into methods instead of lambdas, redo create_name method as well to shorten line and remove .calls