Ocaml turning a string to an array of chars without the blank spaces : so i am doing an assignment on Ocaml and i am kind of stuck in a part where i need to convert a String to an array.
The trick is that i dont want the array to have blank spaces.
Example:

    let s = "This is a string test";;

and i want the outcome to be something like

     y =  [|'t'; 'h'; 'i'; 's'; 'i'; 's'; 'a';'s';'t';'r';'i';'n';'g';'t';'t';'e';'s';'t';|];

for this problem im using the following instruction

    let test = Array.init (String.length y) (fun t -> y.[t]);;
but the value of test has the blank spaces (' ') in it.
If anyone could help i would appreciate it.


