convert string "123" into digit array [1,2,3]