Pass strings to factory