working string array modify for loop