can i declare a string array, without knowing exactly the number of array?

It is not a good idea to use the String (capital S) class on an Arduino as it can cause memory corruption in the small memory on an Arduino. Just use cstrings - char arrays terminated with 0.

And when you compile the program you will need to allocate the full amount of space you need.

...R