adds support for different number of strings