fixed fillarray for Strings and any type