[ocaml] separate string_of_chars function for printing strings in console