1. Register the strings in the String List.
2. Assign the string in the User Subroutine interface, as shown in the figure below.
Figure 1 User Subroutine dialog box
3. Make the User Subroutine code and then compile the files.
4. Run an analysis while changing the string.