moved string array generation from patterns into its own file