input a correct sorted string array